package ten;

public class 十六lambda参数 {
    public static void main(String[] args) {
        ILove love = new Love();
        love.lambda(100);
        love = (a)-> System.out.println("I love lambda: " + a);
        love.lambda(50);
        love = a-> System.out.println("I love lambda: " + a);
        love.lambda(5);
    }
}

interface ILove{
    void lambda(int a);
}

class Love implements ILove{
    @Override
    public void lambda(int num) {
        System.out.println("I love lambda: " + num);
    }
}
